package com.codingman.springmybatisdemo4;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo4 {
	
	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");

		EmployeeMapper mapper = (EmployeeMapper) ctx.getBean("employeeMapper");
		mapper.insertEmployee(new Employee(104, "Dog", 400.00));
	}

}
